<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think1', "index/think");

Route::get('hello/:name', 'index/hello');


Route::group("user", function () {

    Route::post("login", "user/login");

    Route::get("logout", "user/logout");

})->prefix("user/");


Route::group("commodity", function () {
    Route::post("list", "commodity/getList");
    Route::post("add", "commodity/addCommodity");
    Route::get("detail/:id", "commodity/getDetail");
    Route::get("del/:id", "commodity/del");
    Route::post("update", "commodity/update");
})->prefix("commodity/");


Route::group("InLog", function () {

    Route::post("add", "inlog/addInLog");
    Route::post("list", "inlog/getList");
})->prefix("inLog/");

Route::group("OutLog", function () {

    Route::post("add", "outLog/addOutLog");
    Route::post("list", "outLog/getOutLogList");
    Route::get("del", "outLog/delLog");

})->prefix("outLog/");